package com.changgou.pay.feign;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ：hushengjin
 */

@FeignClient(name = "pay")
public interface WeixinPayFeign {

    /**
     * 查询订单信息
     *
     * @param out_trade_no
     * @return
     */
    @RequestMapping("/query/status")
    Result queryStatus(@RequestParam String out_trade_no);

    /**
     * 关闭订单
     *
     * @param orderId
     * @return
     */
    @RequestMapping("/close/pay")
    Result closePay(@RequestParam Long orderId);

}
